package com.eclink.asset.consume.domain.dao;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.eclink.asset.domain.dao.CommonEntity;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 入库申请对象 apply
 *
 * @author chenshixian
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description="入库申请所关联的资产对象")
@Data
@TableName("consume_flow_apply_rel_item")
public class ConsumeFlowApplyRelItem extends CommonEntity {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("对应的申请的ID")
    private String applyId;

    // 数量
    private int num;

    @ApiModelProperty("单价")
    @Excel(name = "单价")
    private BigDecimal price;

    private BigDecimal totalPrice;

    @ApiModelProperty("编码")
    @Excel(name = "编码")
    private String number;

    @ApiModelProperty("名称")
    @Excel(name = "资产名称")
    private String name;

    @ApiModelProperty("品牌")
    @Excel(name = "品牌")
    private String brand;

    @ApiModelProperty("型号")
    @Excel(name = "型号")
    private String model;

    @ApiModelProperty("档案ID")
    @Excel(name = "档案ID")
    private Long fileId;

    private String imgUrl;

    @ApiModelProperty("档案名称")
    @Excel(name = "档案名称")
    @TableField(exist = false)
    private String fileName;

    private int delFlag;

}
